package com.augurit.common.system.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name = "login_error_confine")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class LoginConfine {
	//属性
	private Long Loginid;		
	private String username;	
	private int errorNum;	
	private Date logintime;
	@Id
    @SequenceGenerator(name="seq_login_error_confine", sequenceName="seq_login_error_confine", allocationSize=1)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="seq_login_error_confine")
	public Long getLoginid() {
		return Loginid;
	}
	public void setLoginid(Long loginid) {
		Loginid = loginid;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public int getErrorNum() {
		return errorNum;
	}
	public void setErrorNum(int errorNum) {
		this.errorNum = errorNum;
	}
	public Date getLogintime() {
		return logintime;
	}
	public void setLogintime(Date logintime) {
		this.logintime = logintime;
	}		
	

}